home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / lang / FPL_v147.lha / fpl / src / smakefile < prev    next >
Makefile  |  1996-08-31  |  4KB  |  126 lines

  1. # $VER: fpl.library makefile v4.0 95-07-08
  2.  
  3. ########################################################################
  4. #                                                                      #
  5. # fpl.library - A shared library interpreting script langauge.         #
  6. # Copyright (C) 1992-1996 FrexxWare                                    #
  7. # Author: Daniel Stenberg                                              #
  8. #                                                                      #
  9. # This program is free software; you may redistribute for non          #
  10. # commercial purposes only. Commercial programs must have a written    #
  11. # permission from the author to use FPL. FPL is *NOT* public domain!   #
  12. # Any provided source code is only for reference and for assurance     #
  13. # that users should be able to compile FPL on any operating system     #
  14. # he/she wants to use it in!                                           #
  15. #                                                                      #
  16. # You may not change, resource, patch files or in any way reverse      #
  17. # engineer anything in the FPL package.                                #
  18. #                                                                      #
  19. # This program is distributed in the hope that it will be useful,      #
  20. # but WITHOUT ANY WARRANTY; without even the implied warranty of       #
  21. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                 #
  22. #                                                                      #
  23. # Daniel Stenberg                                                      #
  24. # Ankdammsgatan 36, 4tr                                                #
  25. # S-171 43 Solna                                                       #
  26. # Sweden                                                               #
  27. #                                                                      #
  28. # FidoNet 2:201/328    email:dast@sth.frontec.se                       #
  29. #                                                                      #
  30. ########################################################################
  31.  
  32. LIBRARY = fpl.library    # library version
  33. SFPL    = SFPL        # library using executable
  34.  
  35. #
  36. # These flags build the .library:
  37. #
  38. FLAGS = RESETOPTIONS STRINGMERGE UNSIGNEDCHAR NOSTKCHK NOSTANDARDIO DATA=NEAR\
  39. NOVERSION DEFINE=AMIGA DEFINE=SHARED LIBCODE NOMULTIPLEINCLUDES\
  40. DEFINE=DEBUGMAIL\
  41. OPTIMIZE
  42. DEBUG=S 
  43. #DEFINE=DEBUG
  44.  
  45. ASMFLAGS = IDIR=Include: ASSEMBLER
  46. LINKFLAGS = SC SD
  47. LIBS = LIB:sc.lib
  48. OBJS = libent.o libinit.o script.o numexpr.o hash.o statement.o liballoc.o\
  49.        memory.o frontend.o debug.o reference.o sprintf.o scan.o sscanf.o\
  50.        compile.o
  51. CC = sc
  52. ASM = sc
  53. LINK = slink
  54.  
  55. all: $(LIBRARY) $(SFPL)
  56.  
  57. $(LIBRARY): $(OBJS) smakefile
  58.       slink with <<
  59. LIBFD fpl.fd 
  60. to $(LIBRARY)
  61. FROM  $(OBJS)
  62. # lib:libent.o lib:libinit.o
  63. lib $(LIBS)
  64. noicons
  65. SD SC
  66. #STRIPDEBUG
  67. libid "fpl.library 14.7 (31.8.96)"
  68. libversion 14 librevision 7
  69. <
  70.     copy $(LIBRARY) LIBS: CLONE
  71.     copy FPL.h /include/libraries/ CLONE
  72.     copy reference.h /include/FPL/ CLONE
  73.     copy FPL.h include:libraries/ CLONE
  74.  
  75. $(SFPL): caller.o
  76.     $(LINK) SC SD FROM LIB:c.o caller.o to $(SFPL) LIB $(LIBS)
  77.   
  78. script.o: script.c script.h FPL.h
  79.     $(CC) $(FLAGS) $<
  80.  
  81. numexpr.o: numexpr.c script.h FPL.h
  82.     $(CC) $(FLAGS) $<
  83.  
  84. hash.o: hash.c script.h FPL.h
  85.     $(CC) $(FLAGS) $<
  86.  
  87. statement.o: statement.c script.h FPL.h
  88.     $(CC) $(FLAGS) $<
  89.  
  90. frontend.o: frontend.c script.h FPL.h
  91.     $(CC) $(FLAGS) $<
  92.  
  93. libinit.o: libinit.c
  94.     $(CC) $(FLAGS) $<
  95.  
  96. liballoc.o: liballoc.a
  97.     $(CC) $(FLAGS) $(ASMFLAGS) $<
  98.  
  99. libent.o: libent.a
  100.     $(CC) $(FLAGS) UNDERSCORE $(ASMFLAGS) $<
  101.  
  102. memory.o: memory.c script.h
  103.     $(CC) $(FLAGS) $<
  104.  
  105. debug.o: debug.c FPL.h script.h
  106.     $(CC) $(FLAGS) $<
  107.  
  108. reference.o: reference.c reference.h FPL.h script.h
  109.     $(CC) $(FLAGS) $<
  110.  
  111. sprintf.o: sprintf.c FPL.h script.h
  112.     $(CC) $(FLAGS) $<
  113.  
  114. sscanf.o: sscanf.c FPL.h script.h
  115.     $(CC) $(FLAGS) $<
  116.  
  117. scan.o: scan.c FPL.h script.h
  118.     $(CC) $(FLAGS) $<
  119.  
  120. compile.o: compile.c script.h compile.h
  121.     $(CC) $(FLAGS) $<
  122.  
  123. caller.o: caller.c reference.h FPL.h /include/pragmas/FPL_pragmas.h
  124.     $(CC) STRINGMERGE UNSIGNEDCHAR DATA=NEAR NOVERSION\
  125. DEFINE=AMIGA DEFINE=SHARED DEFINE=SFPL IGNORE=183 $< DEBUG=S
  126.